package com.platform.event.core;

import java.net.UnknownHostException;
import java.util.List;

import com.platform.event.core.model.BaseEvent;
import com.platform.event.core.model.EventResult;

public interface EventService {
	public EventResult saveEvent(BaseEvent event);

	public List<BaseEvent> searchHandleEvent(String status);

	public BaseEvent findOneForUpdate(Integer eventProcessId);

	public void handleCallBack(BaseEvent event, EventResult success);
	
	public List<BaseEvent> searchWaitDeleteEvent();

	public void removeEventToHistory(BaseEvent event);
	
	public void setEventDescription(BaseEvent event) throws UnknownHostException;

	public void handleEventProcess(BaseEvent event);

	public void handleDeleteEventProcess(BaseEvent event);
}
